package baiqitun.stupro.common.model;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author kedaji 分页数据
 */
@ApiModel("分页对象")
@Accessors(chain = true)
@Data
public class PageModel<E> {
    private List<E> records;
    @ApiModelProperty("每页数据大小")
    private Long size;
    @ApiModelProperty("总页数")
    private Integer page;
    @ApiModelProperty("当前页页码")
    private Integer current;
    @ApiModelProperty("总记录数")
    private Long total;
    @ApiModelProperty("彩虹分页")
    List<Long> rainbow;
}
